package com.hqyj.springCloundAccount.server;


import com.github.pagehelper.PageInfo;
import com.hqyj.account.entity.User;
import com.hqyj.account.vo.UserVo;
import com.hqyj.commom.vo.Result;
import com.hqyj.commom.vo.Search;

import java.util.List;

public interface UserService {

    Result<User> addUser(User user);

    User getUserByUserNameAndPassword(String userName,String Password);

    Result<User> login(User user);

    void logout();

    Result<User> updateUser(User user);

    User getUserById(int id);

    User getUserByUserName(String userName);

    Result<Object> deleteUserById(int id);

    PageInfo<User> getUserBySearch(Search search);

    List<User> getUserByKeyword(String keyword);

    UserVo getUserVoByUserIdAndCityId(int userId, int cityId);






}
